<extend name="Base:base" />
<block name="title">{$title}</block>
<block name="content">
    <form action="{:U('Admin/Submenu/addDo')}" method="post">
        <table class="table">
            <tr>
                <th>子菜单名</th>
                <td><input type="text" value="" name="name"/></td>
                <th>子菜单类型</th>
                <td>
                    <select name="type_id">
                        <foreach name="types" item="type">
                            <option value="{$type.id}">{$type.name}</option>
                        </foreach>
                    </select>
                </td>
            </tr>
            <tr>
                <th>是否开启</th>
                <td>
                    <input type="radio" name="is_active" value="1"/>显示
                    <input type="radio" name="is_active" value="0"/>不显示
                </td>
                <th>在父菜单中的排序</th>
                <td>
                    <input type="text" name="sort_order" value="0"/>
                </td>
            </tr>
        </table>
        <input type="submit" value="保存新增菜单"/>
    </form>
</block>